using System;

namespace Leo.Core.Jwt
{
    [Serializable]
    public class JwtTokenCacheItem
    {
        public string Token { get; private set; }

        public JwtTokenCacheItem(string token)
        {
            Token = token;  
        }
    }

    public class JwtTokenCacheKey
    {
        public Guid UserId { get; set; }

        public Guid? TenantId { get; set; }

        public JwtTokenCacheKey(Guid userId, Guid? tenantId)
        {
            UserId = userId;
            TenantId = tenantId;    
        }

        public override string ToString()
        {
            return "userId:" + UserId + ",tenantId:" + TenantId;
        }
    }
}
